<?php
/**
 * Smarty plugin
 * @package Smarty
 * @subpackage plugins
 */


/**
 * Smarty utf8_escape_textarea modifier plugin
 *
 * Type:     modifier<br>
 * Name:     utf8_escape_textarea<br>
 * Purpose:  Escape an utf8 string to display it in HTML <textarea> element
 * @param string
 * @return string
 */
function smarty_modifier_utf8_escape_textarea($utf8_string)
{
    return StringUtil::escapeUTF8ToTextarea($utf8_string);
}

/* vim: set expandtab: */

?>
